package com.atguigu.srb.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 借款人
 * </p>
 *
 * @author Alice
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Borrower对象", description = "借款人")
public class Borrower implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "编号")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "用户id")
  private Long userId;

  @ApiModelProperty(value = "姓名")
  private String name;

  @ApiModelProperty(value = "身份证号")
  private String idCard;

  @ApiModelProperty(value = "手机")
  private String mobile;

  @ApiModelProperty(value = "性别（1：男 0：女）")
  private Integer sex;

  @ApiModelProperty(value = "年龄")
  private Integer age;

  @ApiModelProperty(value = "学历")
  private Integer education;

  @ApiModelProperty(value = "是否结婚（1：是 0：否）")
  @TableField("is_marry")
  private Boolean marry;

  @ApiModelProperty(value = "行业")
  private Integer industry;

  @ApiModelProperty(value = "月收入")
  private Integer income;

  @ApiModelProperty(value = "还款来源")
  private Integer returnSource;

  @ApiModelProperty(value = "联系人名称")
  private String contactsName;

  @ApiModelProperty(value = "联系人手机")
  private String contactsMobile;

  @ApiModelProperty(value = "联系人关系")
  private Integer contactsRelation;

  @ApiModelProperty(value = "状态（0：未认证，1：认证中， 2：认证通过， -1：认证失败）")
  private Integer status;

  @ApiModelProperty(value = "创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty(value = "更新时间")
  private LocalDateTime updateTime;

  @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
  @TableField("is_deleted")
  @TableLogic
  private Boolean deleted;


}
